Heart of Midlothian lost out on a place in the knock-out stages of the Conference League by the narrowest of margins after a 2-2 draw with Petrocub at Tynecastle.
Neil Critchley's side finished in 25th place out of 36 with seven points and missed the cut by virtue of goals scored after being held by their opponents from Moldova.
Second-half goals from James Wilson and Blair Spittal overturned a first-half deficit but Victor Mudrac equalised from the penalty spot with seven minutes left.